package com.yummy.service;

import com.github.pagehelper.PageInfo;
import com.yummy.dto.QueryEmployeeVo;
import com.yummy.entity.Employee;
import com.yummy.mapper.EmployeeMapper;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * @author yinbo
 */
public interface EmployeeService {


	public Employee login(String username,String password);


	Employee findEmpByName(String username);

	boolean registerAdmin(Employee employee);

	PageInfo<Employee> queryByPageAndCondition(QueryEmployeeVo queryEmployeeVo);


	boolean updateEmployee(Employee employee);

	Employee findEmpById(String userId);

	boolean addEmployee(Employee employee);

	boolean editEmployee(Employee employee);

	boolean removeEmployees(String... ids);

	List<Employee> queryAll();


	boolean insertBatch(List<Employee> employees);

	boolean updateStatus(String id,String status);


}
